﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace NP.BPMReportPlatform.Entities.BPM_Business
{
    /// <summary>
    /// 客户档案 主表
    /// </summary>
    [SugarTable("CustomerProfileConfigHeader")]
    public class CustomerProfileConfigHeader
    {
        /// <summary>
        /// 唯一ID
        /// </summary>
        [SugarColumn(IsPrimaryKey = true)]
        public Guid Id { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime AddTime { get; set; }

        /// <summary>
        /// 创建人工号
        /// </summary>
        public string AddUserCode { get; set; }

        /// <summary>
        /// 创建人名称
        /// </summary>
        public string AddUserName { get; set; }

        /// <summary>
        /// 最新修改时间
        /// </summary>
        public DateTime UpdateTime { get; set; }

        /// <summary>
        /// 最新修改人工号
        /// </summary>
        public string UpdateUserCode { get; set; }
        /// <summary>
        /// 最新修改人名称
        /// </summary>
        public string UpdateUserName { get; set; }

        /// <summary>
        /// 事业部类型
        /// </summary>
        public string Business { get; set; }

        /// <summary>
        /// 行业
        /// </summary>
        public string Industry { get; set; }

        /// <summary>
        /// 区域
        /// </summary>
        public string Area { get; set; }

        /// <summary>
        /// 客户类型
        /// </summary>
        public string CustomerType { get; set; }

        /// <summary>
        /// 客户代码(送达方)
        /// </summary>
        public string CustomerCode { get; set; }

        /// <summary>
        /// 客户名称(送达方)
        /// </summary>
        public string CustomerName { get; set; }

        /// <summary>
        /// 售达方代码 
        /// </summary>
        public string SDFCode2 { get; set; }

        /// <summary>
        /// 售达方名称
        /// </summary>
        public string SDFName2 { get; set; }
        /// <summary>
        /// 产线名称
        /// </summary>
        public string ProductionLine { get; set; }

        /// <summary>
        /// 产品名称
        /// </summary>
        public string ProductName { get; set; }

        /// <summary>
        /// 客户归属
        /// </summary>
        public string CustomerAttribution { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public string State { get; set; }

        /// <summary>
        /// 建浴（混槽）日期
        /// </summary>
        public string JYDate { get; set; }

        /// <summary>
        /// 投槽/混槽
        /// </summary>
        public string TCORHC { get; set; }

        /// <summary>
        /// 客户省份
        /// </summary>
        public string Province { get; set; }

        /// <summary>
        /// 客户城市
        /// </summary>
        public string City { get; set; }

        /// <summary>
        /// 标准槽液检测频次/月
        /// </summary>
        public string TestingFrequency { get; set; }

        /// <summary>
        /// 技术担当账号
        /// </summary>
        public string JSDDCode { get; set; }

        /// <summary>
        /// 技术担当名称
        /// </summary>
        public string JSDDName { get; set; }

        /// <summary>
        /// 销售担当账号
        /// </summary>
        public string XSDDCode { get; set; }

        /// <summary>
        /// 销售担当名称
        /// </summary>
        public string XSDDName { get; set; }

        /// <summary>
        ///  子表-指标配置
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public List<CustomerProfileConfigDetail> InnerDetails { get; set; }
    }
}
